package com.robmayhew.jsc;

/**
 * Created by IntelliJ IDEA.
 * User: Rob
 * Date: 5-Apr-2005
 * Time: 8:15:50 PM
 * To change this template use File | Settings | File Templates.
 */
public class JavaSrcToken
{
    public int row;
    public int col;
    public String token;
    public String line;
    public int start;
    public int end;

    public JavaSrcToken(int row, int col, String token, String line, int position)
    {
        this.row = row;
        this.col = col;
        this.token = token.toLowerCase();
        this.line = line;
        start = position;
        end = position + token.length();
    }

    public int getRow()
    {
        return row;
    }

    public int getCol()
    {
        return col;
    }

    public String getToken()
    {
        return token;
    }

    public String toString()
    {
        return token + " " + row + " " + col;
    }

    public String getLine()
    {
        return line;
    }
}
